package com.tianma.springcloud.service;

import com.tianma.springcloud.pojo.Dept;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lgc
 * @createDate 2020/9/3 - 16:02
 */
@Component
public class DeptServiceHystrix implements DeptServiceFeign{
    @Override
    public boolean addDept(Dept dept) {
        return false;
    }

    @Override
    public Dept queryById(Long id) {
        return new Dept().setDeptId(id).setDeptName("已使用服务降级").setDbSource("no db in mysql");
    }

    @Override
    public List<Dept> queryAll() {
        return null;
    }
}
